<?php include $this->tpl('public:common.php') ?>
    
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">请填写功能资料</a></li>
    </ul>	
	
	<div id="myTabContent" class="tab-content">
		  <div class="tab-pane active in" id="home">

           <form id="tab" method="post" action="">
				<label>名称</label>
				<input type="text" name="menu_name" value="<?=$menu['menu_name']?>" class="input-xlarge" required="true">
				<label>链接 <span class="label label-important">不可重复</span></label>
				<input type="text" name="menu_url" value="<?=$menu['menu_url']?>" class="input-xlarge" required="true" >
				
				<label>所属模块</label>
				<select name="module_id" id="DropDownTimezone" class="input-xlarge"<?=$menu['menu_id'] >100 ? '' : ' disabled="true"'?>>
					<?php foreach($module_options_list as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"<?=$menu['module_id']==$_val ? ' selected' : ''?>><?=$_name?></option>
					<?php endforeach?>
				</select>
				
				<label>是否显示为左侧菜单</label>
				<select name="is_show" id="DropDownTimezone" class="input-xlarge">
					<?php foreach($show_options_list as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"<?=$menu['is_show']==$_val ? ' selected' : ''?>><?=$_name?></option>
					<?php endforeach?>
				</select>
				<label>所属菜单</label>
				<select name="father_menu" id="DropDownTimezone" class="input-xlarge">
					<?php $i=$j=0; foreach($father_menu_options_list as $_group=>$_item):?>
						<?php if(!is_array($_item)):?>
						<option value="<?=$_group?>" class="input-xlarge option"><?=$_item?></option>
					<?php else:?>
						<optgroup label="<?=$_group?>">
						<?php $i++; foreach($_item as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option" id="DropDownTimezone-<?=$i?>-<?=$j++?>"<?=$menu['father_menu']==$_val ? ' selected' : ''?>><?=$_name?></option>
						<?php endforeach?>
						</optgroup>
					<?php endif?>
					<?php endforeach?>
				</select>
				<label>是否有效</label>
				<select name="online" id="DropDownTimezone" class="input-xlarge">
					<?php foreach($online_options_list as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"<?=$menu['online']==$_val ? ' selected' : ''?>><?=$_name?></option>
					<?php endforeach?>
				</select>
				<label>是否允许快捷菜单 <span class="label label-important">修改/ 删除类链接不允许</span></label>
				<select name="shortcut_allowed" id="DropDownTimezone" class="input-xlarge">
					<?php foreach($shortcut_allowed_options_list as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"<?=$menu['shortcut_allowed']==$_val ? ' selected' : ''?>><?=$_name?></option>
					<?php endforeach?>
				</select>
				<label>描述</label>
				<textarea name="menu_desc" rows="3" class="input-xlarge"><?=$menu['menu_desc']?></textarea>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><strong>提交</strong></button>
				</div>
			</form>
        </div>
    </div>
</div>
<?php include $this->tpl('public:footer.php') ?>